<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
<%
String start=request.getParameter("start");
  String limit=request.getParameter("limit");
  System.out.println("start:"+start);
  System.out.println("limit:"+limit);
  String module_Name = "默认";
  String module_Id = "0";
  if(request.getParameter("module_Name")!=null)module_Name=request.getParameter("module_Name");
  if(request.getParameter("module_ID")!=null)module_Id=request.getParameter("module_ID");
  Integer first=Integer.parseInt(start);
  Integer limitInt=Integer.parseInt(limit);
  
  List<String> list=new ArrayList<String>();
  for(int i=0;i<100;i++){
     StringBuffer data=new StringBuffer();
     data.append("{module_ID:").append(i).append(",module_Name:'").append(module_Name+"_"+i+"'")
         .append(",module_FID:").append(module_Id).append("}");
     list.add(data.toString());
     
  }
  
  StringBuffer showData=new StringBuffer();
  int end=first+limitInt;
  for(int i=first;i<end;i++){
      showData.append(list.get(i));
      if((i+1)!=end){
        showData.append(",");
      }
  }
  
  String json= "{"+
         // "metaData:{"+
        //   " totalProperty:'totalCount',"+
        //    "root:'resultList',"+
            //"id:'govInfoModuleList_"+module_Id+"',"+
        //    "fields:["+
        //      "{name:'module_ID',mapping:'module_ID'},"+
        //      "{name:'module_Name',mapping:'module_Name'},"+
        //      "{name:'module_FID',mapping:'module_FID'},"+
       //     "]"+
          
        //  "},"+
          "totalCount:"+list.size()+","+
          "resultList:["+
           showData.toString()+
          "]"+
        
        "}";
        System.out.println(json);
  response.getWriter().write(json);
%>